<?php
require('../includes/modules/database/connect.php');
require('../includes/modules/database/function_chungloai.php');
$idChungLoai=$_GET['id'];
//var_dump($idChungLoai);exit();
$idParent=$_POST['chungLoaiCha'];
//var_dump($idParent);exit();
$tenChungLoai=$_POST['tenChungLoai'];
//var_dump($tenChungLoai);exit();
$anHien=$_POST['anHien'];
//var_dump($anHien);exit();
$suaChungLoai=suaChungLoai($idParent,$idChungLoai,$tenChungLoai,$anHien);
if($suaChungLoai)
{
	header('location: show_sanpham.php?id='.$idChungLoai);	
}
else
{
	echo 'error!!!';
}
?>